]> dgit.raspbian.org Git - gnome-shell.git/commit
magnifier: Use inhibit-unfocus API to keep wayland focus while hidden
authorJonas Dreßler <verdre@v0yd.nl>
Mon, 7 Oct 2019 13:02:17 +0000 (15:02 +0200)
committerverdre <jonas@dressler.it>
Mon, 24 Feb 2020 10:31:08 +0000 (10:31 +0000)
commit3848513cf4dcab3f181676f834fd978359c3911f
tree1d552baef67b0e89c07e29b26a92793294841c3f
parent725c72e020df019552ecbb63fafcdf2211839085
magnifier: Use inhibit-unfocus API to keep wayland focus while hidden

Since commit mutter/a2a8f0cda we force the focus surface of the
meta-wayland-pointer to NULL while the pointer is hidden. This
introduced an issue with the magnifier, where we use
`set_pointer_visible` to hide the real cursor and show our own cursor at
the correct position: Because the meta-wayland-pointer is still used to
communicate with Wayland clients, the UI of the windows will not respond
to mouse movement anymore as soon as the real cursor is hidden.

To fix this, use the newly added clutter_seat_inhibit_unfocus() API to
temporarily disable unsetting the focus-surface while the magnifier is
hiding the system cursor.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/993
js/ui/magnifier.js